package com.zz.bid.pojo.query;

import org.springframework.util.StringUtils;

/**
 * @author chenkehan
 * created at 2021/3/20  5:17 下午
 */
public class SettleQuery extends BaseQuery {

    private String name;

    private String signDate;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSignDate() {
        return signDate;
    }

    public void setSignDate(String signDate) {
        this.signDate = signDate;
    }

    public String getStartSignDate() {
        if (StringUtils.isEmpty(signDate) || ",".equals(signDate)) {
            return null;
        }
        return signDate.split(",")[0];
    }

    public String getEndSignDate() {
        if (StringUtils.isEmpty(signDate) || ",".equals(signDate)) {
            return null;
        }
        return signDate.split(",")[1];
    }
}
